package cn.com.cifi.mars.web.action.sys;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import cn.com.cifi.mars.bean.vo.sys.rsp.PositionGroupAuthVo;
import cn.com.cifi.mars.common.bean.R;
import cn.com.cifi.mars.common.constants.VersionConstant;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;


@Api(tags = {"系统管理"})
@RequestMapping("/${spring.data.rest.base-path}/{apiVersion}/sys/positionGroup")
public interface IPositionGroupController {

	@ApiOperation(value = "权限管理--岗位组分页", notes = "权限管理--岗位组分页")
	@GetMapping(value = "potGroupAuthPage")
	public R<PositionGroupAuthVo> getPotGroupAuthPage(
			@ApiParam(value = "接口版本", required = true, defaultValue = VersionConstant.V1) @PathVariable(value = "apiVersion") String apiVersion,
			@ApiParam(value = "当前第几页", required = true, defaultValue = "1") @RequestParam(value = "current") String current,
			@ApiParam(value = "每页条数", required = true, defaultValue = "2") @RequestParam(value = "pageSize") String pageSize,
			@ApiParam(value = "岗位组名称", required = false) @RequestParam(name = "jobDefinitionsName" , defaultValue = "") String jobDefinitionsName,
			@ApiParam(value = "岗位组编码", required = false) @RequestParam(name = "jobDefinitionsId" , defaultValue = "") String jobDefinitionsId);

	@ApiOperation(value = "查询岗位组存在供销存的数据", notes = "查询岗位组存在供销存的数据")
	@GetMapping(value = "positionGroupName")
	public R<String> getPositionGroupName(
			@ApiParam(value = "接口版本", required = true, defaultValue = VersionConstant.V1) @PathVariable(value = "apiVersion") String apiVersion);

}
